// use localStorage to store the authority info, which might be sent from server in actual project.
export function getAuthority() {
  return localStorage.getItem('admintoken');
}

export function setAuthority(authority) {
  if (authority) {
    return localStorage.setItem('admintoken', authority);
  } else {
    localStorage.removeItem('permissionStaff');
    return localStorage.removeItem('admintoken');
  }
}
